package 赛码.成.邮箱混淆;

import java.util.Scanner;

public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        System.out.println(function2(s));
    }

    private static String function2(String s) {
        StringBuffer sbu = new StringBuffer("");
        boolean a = true;
        for(int i=0;i<s.length();i++){
            if(s.substring(i,i+1).equals("@")) a = false;
            sbu.append(s.substring(i,i+1));
             if(a){
                 if(s.substring(i+1,i+2).equals("@")) continue;
                if((i+1)%4==1){
                sbu.append("M");
            }
            if((i+1)%4==2){
                sbu.append("A");
            }
            if((i+1)%4==3){
                sbu.append("S");
            }
            if((i+1)%4==0){
                sbu.append("K");
            }
            }
        }
        return sbu.toString();
    }
}
